class ResponseMessage {
  static SUCCESS = new ResponseMessage(200, '成功'); // 200
  static BODY_NOT_MATCH = new ResponseMessage(400, '请求的数据格式不符'); // 400
  static SIGNATURE_NOT_MATCH = new ResponseMessage(401, '请求的数字签名不匹配'); // 401
  static NOT_FOUND = new ResponseMessage(404, '未找到该资源'); // 404
  static INTERNAL_SERVER_ERROR = new ResponseMessage(500, '服务器内部错误'); // 500
  static SERVER_BUSY = new ResponseMessage(503, '服务器正忙，请稍后再试'); // 500

  /**
   * 响应枚举
   * @param {number} code 响应码
   * @param {string} message 响应信息
   */
  constructor(code, message) {
    this.code = code;
    this.message = message;
  }
}
exports.ResponseMessage = ResponseMessage;
